package com.vcc.core.derive.admin;

import cn.idev.excel.annotation.ExcelProperty;
import cn.idev.excel.converters.longconverter.LongStringConverter;
import com.vcc.core.derive.converter.DateConverter;
import com.vcc.core.derive.converter.regulation.AmountTypeConverter;
import com.vcc.core.derive.converter.regulation.UseFlagConverter;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class DeriveRegulation implements Serializable {

    @ExcelProperty(value = "id",converter =  LongStringConverter.class)
    private Long id;

    @ExcelProperty(value = "调账类型")
    private String type;

    @ExcelProperty(value = "调账事件",converter = UseFlagConverter.class)
    private Integer useFlag;

    @ExcelProperty(value = "订单号")
    private String orderId;

    @ExcelProperty(value = "调账方式",converter = AmountTypeConverter.class)
    private Integer amountType;

    @ExcelProperty(value = "金额")
    private BigDecimal amount;

    @ExcelProperty(value = "币种")
    private String currencyCode;

    @ExcelProperty(value = "卡号")
    private String cardNumber;

    @ExcelProperty(value = "备注")
    private String remark;

    @ExcelProperty(value = "操作时间",converter = DateConverter.class)
    private Date requestDate;

    @ExcelProperty(value = "用户账号")
    private String account;

    @ExcelProperty(value = "操作账号")
    private String operationAccount;

    @ExcelProperty(value = "代理账号")
    private String dealerAccount;



}
